package cn.net.isir.service;

import cn.net.isir.core.BasicService;
import cn.net.isir.core.SetBasicDao;
import cn.net.isir.dao.MinipIndexDataDao;
import cn.net.isir.dao.TurnDao;
import cn.net.isir.entity.Turn;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class TurnService extends BasicService<Turn> {
    @SetBasicDao
    @Resource
    private TurnDao turnDao;
    @Resource
    private MinipIndexDataDao minipIndexDataDao;

    /**
     * 结转记录
     *
     * @param salesmanId
     * @return
     */
    public List<Map<String, Object>> getTurnHistoryList(String salesmanId) {
        List<Map<String, Object>> turnHistoryList = minipIndexDataDao.getTurnHistoryList(salesmanId);
        return turnHistoryList;
    }
}
